package com.dianping.cat.home.business.entity;

import com.dianping.cat.home.business.BaseEntity;
import com.dianping.cat.home.business.IVisitor;
import java.util.ArrayList;
import java.util.List;




public class Tag
  extends BaseEntity<Tag>
{
  private String m_id;
/* 15 */   private List<BusinessItem> m_businessItems = new ArrayList();





/* 21 */   public Tag(String id) { this.m_id = id; }




/* 26 */   public void accept(IVisitor visitor) { visitor.visitTag(this); }


  public Tag addBusinessItem(BusinessItem businessItem) {
/* 30 */     this.m_businessItems.add(businessItem);
/* 31 */     return this;
  }


  public boolean equals(Object obj) {
/* 36 */     if (obj instanceof Tag) {
/* 37 */       Tag _o = (Tag)obj;

/* 39 */       if (!equals(getId(), _o.getId())) {
/* 40 */         return false;
      }

/* 43 */       return true;
    }

/* 46 */     return false;
  }


/* 50 */   public List<BusinessItem> getBusinessItems() { return this.m_businessItems; }



/* 54 */   public String getId() { return this.m_id; }



  public int hashCode() {
/* 59 */     int hash = 0;

/* 61 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }





/* 68 */   public void mergeAttributes(Tag other) { assertAttributeEquals(other, "tag", "id", this.m_id, other.getId()); }



  public Tag setId(String id) {
/* 73 */     this.m_id = id;
/* 74 */     return this;
  }

  public Tag() {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/business/entity/Tag.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */